public class SGWSQLib
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static float |
BITRATE_15_TO_1
Yields around 15:1 compression.
|
static float |
BITRATE_5_TO_1
Yields around 5:1 compression.
|
| Constructor and Description |
|---|
SGWSQLib() |
| Modifier and Type | Method and Description |
|---|---|
long |
SGWSQDecode(byte[] fingerImageOut,
int[] width,
int[] height,
int[] pixelDepth,
int[] ppi,
int[] lossyFlag,
byte[] wsqImage,
int wsqImageSize)
Decode the WSQ image and return the RAW image.
|
long |
SGWSQEncode(byte[] wsqImageOut,
float wsqBitRate,
byte[] fingerImage,
int width,
int height,
int pixelDepth,
int ppi)
Encode a WSQ image.
|
long |
SGWSQGetDecodedImageSize(int[] fingerImageOutSize,
byte[] wsqImage,
int wsqImageSize)
Get the size of the RAW image contained in the WSQ image file.
|
long |
SGWSQGetEncodedImageSize(int[] wsqImageOutSize,
float wsqBitRate,
byte[] fingerImage,
int width,
int height,
int pixelDepth,
int ppi)
Get the size of the compressed WSQ image that will be returned when the RAW image file is compressed.
|
public static final float BITRATE_5_TO_1
public static final float BITRATE_15_TO_1
public long SGWSQGetDecodedImageSize(int[] fingerImageOutSize,
byte[] wsqImage,
int wsqImageSize)
fingerImageOutSize - Integer array that will be populated with the size of the WSQ image.wsqImage - Byte array containing the WSQ image.wsqImageSize - The size of the WSQ image file.public long SGWSQDecode(byte[] fingerImageOut,
int[] width,
int[] height,
int[] pixelDepth,
int[] ppi,
int[] lossyFlag,
byte[] wsqImage,
int wsqImageSize)
fingerImageOut - Byte array that will be populated with the AW image.width - Integer array that will be populated with the RAW image width.height - Integer array that will be populated with the RAW image height.pixelDepth - Integer array that will be populated with the RAW image pixelDepth. Example 8 bits per pixel.ppi - Integer array that will be populated with the RAW image resolution. Example 500 ppi.lossyFlag - Integer array that will be populated with the RAW image width.wsqImage - Byte array containing the WSQ image.wsqImageSize - The size of the WSQ image file.public long SGWSQGetEncodedImageSize(int[] wsqImageOutSize,
float wsqBitRate,
byte[] fingerImage,
int width,
int height,
int pixelDepth,
int ppi)
wsqImageOutSize - Integer array that will be populated with the size of the WSQ image.wsqBitRate - Compression bitrate to be used. Either BITRATE_5_TO_1 or BITRATE_15_TO_1.fingerImage - Byte array containing a raw fingerprint image.width - Width of the raw image in pixels.height - Height of the raw image in pixels.pixelDepth - Pixel depth of the image. Example - 8 bits per pixel.ppi - Image resolution.SGWSQLibpublic long SGWSQEncode(byte[] wsqImageOut,
float wsqBitRate,
byte[] fingerImage,
int width,
int height,
int pixelDepth,
int ppi)
wsqImageOut - Byte array that will be populated with the WSQ image.wsqBitRate - Compression bitrate to be used. Either BITRATE_5_TO_1 or BITRATE_15_TO_1.fingerImage - Byte array containing a raw fingerprint image.width - Width of the raw image in pixels.height - Height of the raw image in pixels.pixelDepth - Pixel depth of the image. Example - 8 bits per pixel.ppi - Image resolution.SGWSQLib